home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: Font.prg
- *
- * WRITTEN BY: Borland Late Night Crew
- *
- * DATE: 6/93
- *
- * UPDATED:
- *
- * VERSION: Alpha α
- *
- * DESCRIPTION: This program shows how to use Bladerunner's DEFINE FONT command
- * to create different fonts. In this version of Bladerunner
- * fonts can be used with text,entryfields and pushbuttons.
- * Here, a window is defined with text and entryfield objects
- * in various fonts.
- *
- * PARAMETERS: None
- *
- * CALLS: None
- *
- * USAGE: DO Font
- *
- *******************************************************************************
- define window w from 1,1 to 30,70 of application title "Fonts Are Fun"
-
- * Create the fonts
- define font f1 height 30 width 30 type "Roman" Italic
- define font f2 height 30 width 30 type "Roman" bold
- define font f3 height 15 width 10 type "Roman" underline
- define font f4 height 20 width 20 type "Script"
- define font f5 height 30 width 20 type "Arial" Bold
- define font f6 height 40 width 20 type "Script" Bold
-
- * Define window controls
- define text t of w prompt "Good Stuff" color r+/w font f1 at 1,1
- define text t2 of w prompt "Roman 30 30 bold" at nextrow(),1 color b+/w font f2
- define text t3 of w prompt "Roman 15 10 underline" at nextrow(),1 color bg/w font f3
- define text t4 of w prompt "Script 20 20" at nextrow(),1 color br+/w font f4
- define text t5 of w prompt "Arial 30 20 bold" at nextrow(),1 color w+/w font f5
- define text t6 of w prompt "Script 40 20 bold" at nextrow(),1 color gr+/w font f6
- * Set entryfield color
- set color of field to w+/b
- a = "Edit Me "
- * Use nextrow() to correctly place the entryfield on the next logical row.
- * Using the last row + 1 will not always work because of different font heights.
- define entryfield a of w at nextrow(),1 color w+/b font f6
- define push ok of w prompt "OK" at nextrow(),50
- ReadModal("w")
-
- ********************************* End of Font.prg *****************************
-